/**
 * Created by zhubuqing on 2018/5/28.
 */
var searchThematicClassificationUrl = baseUrl + "/common/resource/searchThematicClassification";

var nowPage = 0;
var size = 8;

$(function () {
    // 获取所有专题分类
    searchThematicClassification();
})

function searchThematicClassification() {
    var data = {
        page: 0,
        size: 8
    };

    commonAjax(searchThematicClassificationUrl, data, "searchThematicClassificationRes", "GET", data);
}
function searchThematicClassificationRes(res, data) {
    var resultData = res.obj.content;

    var thematicClassificationPageHtml = "";

    for (var i = 0; i < resultData.length; i++) {
        thematicClassificationPageHtml += '<a href="/sizheng/html/jx_ggzyk.html?thematicClassificationId=' + resultData[i].id + '"><div class="col-md-3">';
        thematicClassificationPageHtml += '<div class="imgBoxList">';
        thematicClassificationPageHtml += '<img src="' + resultData[i].pic + '" alt="" style="height:135px">';
        thematicClassificationPageHtml += '<p class="p1">' + resultData[i].title + '</p>';
        thematicClassificationPageHtml += '</div></div></a>';
    }

    $("#thematicClassificationPage").html(thematicClassificationPageHtml);

    page(res.obj, searchThematicClassificationUrl, size, nowPage, data);
}